<template>
    <div id="order-index">
        <div class="content">
            <div class="nav">
                <div>
                    订单
                </div>
                <div>
                    编辑
                </div>
            </div>
            <div class="no-login">
                <div class="img-box">
                    <img src="/static/img/no-login.png" alt="">
                </div>
                <div class="text">
                    您还未登录，请登录后查看订单
                </div>
                <div class="go-login">
                    登录/注册
                </div>
            </div>
        </div>

        <tabbar :index="index" :items="items" :show="showTab" back-color="#FCFCFC" color="#B2B2B2"></tabbar>
    </div>
</template>

<script type="text/ecmascript-6">
    import { Tabbar } from 'vmc';

    export default{
        components: {
            Tabbar
        },
        data() {
            return {
                direction: 'forward',
                showTab: true,
                index: 1,
                items: [
                    {
                        icon: `<i style="transform: scale(0.94);" class="icono-home"></i>`,
                        text: '首页',
                        callback: () => this.$router.go('/store/index')
                    },
                    {
                        icon: `<i style="transform: scale(0.94);" class="icono-exclamationCircle"></i>`,
                        text: '订单',
                        callback: () => this.$router.go('/order/index')
                    },
                    {
                        icon: `<i style="transform: scale(0.94);" class="icono-exclamationCircle"></i>`,
                        text: '我的',
                        callback: () => this.$router.go('/Ucenter')
                    }
                ]
            }
        },
    }

</script>

<style rel="stylesheet/less" lang="less" scoped>
    #order-index{

        .content{
            width: 100%;
            height: 100%;
            overflow: auto;
            box-sizing: border-box;
            padding-bottom: 55px;

            .nav{
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 15px;
                background: #ffffff;
                height: 45px;
            }
            .no-login{
                text-align: center;
                .img-box{
                    width: 120px;
                    height: 120px;
                    margin: 0 auto;
                    padding-top: 50%;

                    img{
                        width: 100%;
                    }
                }
                .text{
                    margin: 25px auto 18px auto;
                }
                .go-login{
                    width: 160px;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    background: #FFD161;
                    border-radius: 5px;
                    margin: 0 auto;
                }
            }
        }
    }
</style>